home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / mail / mailleds.93 / mailleds / mailleds-0.93 / mailleds.h < prev    next >
C/C++ Source or Header  |  1996-03-12  |  1KB  |  58 lines

  1. #define PORT_LED_1 1<<0
  2. #define PORT_LED_2 1<<1
  3. #define PORT_LED_3 1<<2
  4. #define PORT_LED_4 1<<3
  5. #define PORT_LED_5 1<<4
  6. #define PORT_LED_6 1<<5
  7. #define PORT_LED_7 1<<6
  8. #define PORT_LED_8 1<<7
  9.  
  10. #define X_CAP 1
  11. #define X_NUM 2
  12. #define X_SCR 3
  13.  
  14. #include <time.h>
  15. #include <stdio.h>
  16.  
  17. /* default the maildir */
  18. #ifndef MAILDIR
  19. #include <paths.h>
  20. #define MAILDIR _PATH_MAILDIR 
  21. #endif
  22.  
  23. void blink_once(unsigned long on_pause, unsigned long off_pause);
  24. void blink_x(unsigned long on_pause, unsigned long off_pause, int x);
  25. void check_ttys(char **ttyfiles);
  26. void close_files();
  27. void detach_from_tty();
  28. void exit_cleanly();
  29. void exit_fatal(const char *reason);
  30. void get_X_leds_from_kbd_leds(int leds);
  31. void parse_argv(int argc, char **argv);
  32. void reset_flags();
  33. void set_kbd_leds(int leds);
  34. void set_port_leds(int port, int leds);
  35. void unset_port_leds(int port, int leds);
  36. void set_pidfilename();
  37. void stat_error(char *filename);
  38. void poke_kbd_leds(int fd, int leds);
  39. void usage(void);
  40. void write_pidfile(void);
  41. void *xmalloc(int bytes);
  42. void make_tty_array();
  43. void make_display_array(char **displays);
  44. void close_display_array(void);
  45. void free_2d_array(char **array);
  46. int count_mail(FILE *mailbox);
  47. int count_occurences(FILE *file, char *exp);
  48. int get_kbd_leds(int fd);
  49. int get_x_leds_from_kbd_leds(int leds);
  50. int get_pid_from_file(char *pid_filename);
  51. int pid_check();
  52. char *get_mailfile();
  53. char *itoa(int x);
  54. FILE *open_mailbox_file(char *file);
  55. time_t get_time_of(char *filename);
  56.  
  57.  
  58.